package com.alibaba.otter.node.etl.load.loader.mq.rabbit.model;

import com.alibaba.otter.shared.common.utils.AddressUtils;
import lombok.Data;

import java.util.Date;
import java.util.UUID;


/**
 * Created by lichuanjie on 2018/3/6.
 */
@Data
public class MessageHeaderObject {
    /**
     * "CustomerHeader": null,
     * "MessageId": "5f6d02ba-0faa-484b-9673-19f33c8cff34",
     * "MessageTypeFullname": "ShoppingPlatform.OrderPlacing.Entities.Message.PlaceOrderEventedMessage",
     * "SendDateTime": "2017-11-13T16:50:00.0109+08:00",
     * "SendMachineIp": "192.168.36.110"
     */
    private String CustomerHeader;
    private String MessageId = UUID.randomUUID().toString();
    private String MessageTypeFullname;
    private Date SendDateTime = new Date(System.currentTimeMillis());
    private String SendMachineIp = AddressUtils.getHostIp();
}
